package util;

public class Configuration {

	private static Configuration instance = new Configuration();
	String[] statusHosts = new String[] { "10.11.1.52", "10.11.1.53",
			"10.11.1.54", "10.11.1.55", "10.11.1.56", "10.11.1.58" };

	/*
	 * String[] followShipHosts = new String[] { "10.11.1.52", "10.11.1.54",
	 * "10.11.1.55", "10.11.1.56", "10.11.1.58", "10.11.1.62" };
	 */

	String[] followShipHosts = new String[] { "10.11.1.207", "10.11.1.205",
			"10.11.1.206" };
	String[] metaHosts = new String[] { "10.11.1.207", "10.11.1.205",
			"10.11.1.206" };

	// String[] followShipHosts = new String[] { "127.0.0.1" };
	// String[] metaHosts = new String[] { "127.0.0.1" };

	// String[] statusHosts = new String[] { "127.0.0.1" };

	/*
	 * String[] followShipHosts = new String[] { "10.11.1.58", "10.11.1.60",
	 * "10.11.1.62", "10.11.1.63", "10.11.1.65", "10.11.1.66" }; String[]
	 * metaHosts = new String[] { "10.11.1.58", "10.11.1.60", "10.11.1.62",
	 * "10.11.1.63", "10.11.1.65", "10.11.1.66" };
	 */

	public static Configuration instance() {
		return instance;
	}

	private static final String DIR_PREFIX = "/home/xiafan/weibo/fortest/";

	// private static final String DIR_PREFIX = "data/";

	// private static final String DIR_PREFIX = "Z:\\weibo\\fortest\\";
	// private static final String DIR_PREFIX =
	// "/Volumes/xiafan/weibo/fortest/";
	public String getFlwShipFile() {
		return DIR_PREFIX + "profilterleft/flwship";
	}

	public String getCommunityFile() {
		return DIR_PREFIX + "label/community";
	}

	public String getReadSequenceFile() {
		return DIR_PREFIX + "mseq.txt";
	}

	public String getReadFreqFile() {
		return DIR_PREFIX + "rfstu.txt";
	}

	public String getWriteFreqFile() {
		return DIR_PREFIX + "statuscount/userwf.txt";
	}

	public String getStatusFile() {
		return DIR_PREFIX + "status/part-0000";
	}

	public int getStatusFileCount() {
		return 3;
	}

	public String[] getStatusHosts() {
		return statusHosts;
	}

	public int getStatusPort() {
		return 6379;
	}

	public int getMetaPort() {
		return 6379;
	}

	public String[] getMetaHosts() {
		return metaHosts;
	}

	public String[] getFollowShipHosts() {
		return followShipHosts;
	}

	public int getFollowShipPort() {
		return 6379;
	}

	public String getParition() {
		return util.Partition.class.toString();
	}

	public int getQueueThreshold() {
		return 100000;
	}

	public int getComSizeAvg() {
		return 1000;
	}
}
